const ChildrenB: React.FC<{
  addCount: () => void;
  setValue: (num: number) => void;
}> = ({ addCount, setValue }) => {
  return (
    <div>
      <h2> ChildrenB</h2>
      <button onClick={() => addCount()}>+1</button>
      <button onClick={() => setValue(100)}>value +1</button>
    </div>
  );
};

export default ChildrenB;
